#ifndef BULLET_H
#define BULLET_H
#include "config.h"
#include <QPixmap>


class Bullet
{
public:
    Bullet();

    //更新子弹坐标
    void updatePosition();


public:
    //子弹资源对象
    QPixmap m_Bullet;
    //子弹坐标
    int m_X;
    int m_Y;
    //子弹飞行速度
    int m_Speed;
    //子弹是否闲置
    bool m_Free;
    //子弹的矩形边框（碰撞检测
    QRect m_Rect;

};

#endif // BULLET_H
